<ion-view id="login">
	<ion-content>
		<div class="login-div">
			<input type="text" placeholder="账号" ng-model = "loginCtrl.requestData.loginName">
			<input type="password" placeholder="密码" ng-model = "loginCtrl.requestData.password">
			<button class="login-btn"
			  ng-disabled="(loginCtrl.requestData.loginName == '' || loginCtrl.requestData.password == '')"
			  ng-class = "{'btn-disabled':(loginCtrl.requestData.loginName == '' || loginCtrl.requestData.password == '')}"
			  ng-click = "loginCtrl.login()" >登录</button>
			<!--  <button class="cancle-btn" ng-click="loginCtrl.cancle()">取消</button> -->
		</div>
	</ion-content>
</ion-view>


<style type="text/css">
    #login {
	 	background: url('img/login-bg.png');
	 	background-size: 100% 100%;
    }
	#login .login-div {
		width: 50%;
		margin-left: 25%;
		text-align: center;
		background: white;
		padding: 40px 50px;
		box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.35);
		margin-top: 150px;
	}
	#login .login-div input{
		border:1px solid lightgray;
		padding: 20px 10px;
		margin-bottom: 30px;
		width: 100%;
		font-size: 16px;
	}

	#login .login-btn {
		background: #17a47d;
		color: white;
		width: 100%;
		padding: 10px 0;
		font-size:16px;
		border:none;
		/*margin-bottom: 15px;*/
	}

	#login .btn-disabled {
		background: #cccccc;
	}

	#login .cancle-btn {
		color: white;
		width: 100%;
		padding: 10px 0;
		font-size:16px;
		border:none;
		background: #cccccc;
	}

</style>